// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Axios from 'axios'

Vue.config.productionTip = false


//入口文件处引入mint-ui引入全部组件
import Mint from 'mint-ui'
Vue.use(Mint)

// 加载 mint-ui样式
import 'mint-ui/lib/style.css'


//配置公共url
Axios.defaults.baseURL = '/api/'
// Axios.defaults.headers['Content-Type']='application/json'
// Axios.defaults.headers['Access-Control-Allow-Origin']='*'
// 配置axios
// Vue.use(Axios)
// 另一种挂载方式
Vue.prototype.$axios = Axios 

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
